<html>
<head>
    <meta name="layout" content="freshmade">
</head>

<body>
<div id="content-wrapper">
    <div class="center-wrapper">
        <div class="content">
            <div id="main">
                <div class="post">
                    <div class="post-title">
                        <h1>${user.name}</h1>
                        <g:message code="user.changePwd"/>
                        <g:render template="/template/messageBar"/>
                    </div>
                </div>

                <g:form action="changePasswordDo" method="post">
                    <g:hiddenField name="id" value="${user.id}"/>
                    <g:hiddenField name="version" value="${user.version}"/>
                    <div id="myform">
                        <div class="field">
                            <div class="key"><g:message code="user.password.old"/></div>

                            <div class="value">
                                <g:passwordField name="passwordOld"/>
                            </div>

                            <div class="hint">
                                请输入旧密码，忘记密码请联系管理员
                            </div>

                            <div class="clear"></div>
                        </div>

                        <div class="field">
                            <div class="key"><g:message code="user.password.new"/></div>

                            <div class="value">
                                <g:passwordField name="passwordNew1"/>
                            </div>

                            <div class="hint">
                                输入新密码
                            </div>

                            <div class="clear"></div>
                        </div>

                        <div class="field">
                            <div class="key"><g:message code="user.password.again"/></div>

                            <div class="value">
                                <g:passwordField name="passwordNew2"/>
                            </div>

                            <div class="hint">
                                再次输入新密码
                            </div>

                            <div class="clear"></div>
                        </div>

                        <div class="buttonbar">
                            <input type="submit" class="button" value="Submit"/>
                            <input type="reset" class="button" value="Reset"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>
</body>
</html>